package com.uidt.project.ptsj.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.uidt.project.ptsj.mapper.WarningMapper;
import com.uidt.project.ptsj.domain.Warning;
import com.uidt.project.ptsj.service.IWarningService;

/**
 * 风险提醒Service业务层处理
 * 
 * @author uidt
 * @date 2024-08-22
 */
@Service
public class WarningServiceImpl implements IWarningService
{
    @Autowired
    private WarningMapper ptsjWarningMapper;

    /**
     * 查询风险提醒
     * 
     * @param id 风险提醒主键
     * @return 风险提醒
     */
    @Override
    public Warning selectWarningById(Long id)
    {
        return ptsjWarningMapper.selectWarningById(id);
    }

    /**
     * 查询风险提醒列表
     * 
     * @param ptsjWarning 风险提醒
     * @return 风险提醒
     */
    @Override
    public List<Warning> selectWarningList(Warning ptsjWarning)
    {
        return ptsjWarningMapper.selectWarningList(ptsjWarning);
    }

    /**
     * 新增风险提醒
     * 
     * @param ptsjWarning 风险提醒
     * @return 结果
     */
    @Override
    public int insertWarning(Warning ptsjWarning)
    {
        return ptsjWarningMapper.insertWarning(ptsjWarning);
    }

    /**
     * 修改风险提醒
     * 
     * @param ptsjWarning 风险提醒
     * @return 结果
     */
    @Override
    public int updateWarning(Warning ptsjWarning)
    {
        return ptsjWarningMapper.updateWarning(ptsjWarning);
    }

    /**
     * 批量删除风险提醒
     * 
     * @param ids 需要删除的风险提醒主键
     * @return 结果
     */
    @Override
    public int deleteWarningByIds(Long[] ids)
    {
        return ptsjWarningMapper.deleteWarningByIds(ids);
    }

    /**
     * 删除风险提醒信息
     * 
     * @param id 风险提醒主键
     * @return 结果
     */
    @Override
    public int deleteWarningById(Long id)
    {
        return ptsjWarningMapper.deleteWarningById(id);
    }
}
